package com.cike.interpreter;

/**
 * @author kou
 * TerminalExpression（终结符表达式）类
 */
public class TerminalExpression implements Expression{
    private String data;
    public TerminalExpression(String data) {
        this.data = data;
    }
    @Override
    public boolean interpret(String context) {
        return context.contains(data);
    }
}
